package com.tamartech.greendb.util;

import java.util.Date;

import org.apache.commons.lang.time.DateUtils;

import com.tamartech.greendb.data.Person;

public class GreendbUtils
{
    private static Date oneYearAgo;

    static
    {
        oneYearAgo = DateUtils.addYears (new Date(), -1);
    }

    public static boolean isNewPerson (Person p)
    {
        return (oneYearAgo.compareTo(p.getFirstSeenRoll().getDate()) < 0);
    }
}
